import sys
from PyQt5.QtWidgets import QApplication, QMainWindow

import helloworld


# import demo_01_window.helloworld


def click_success():
    print('信号:clicked 槽:click_success()')


if __name__ == '__main__':
    app = QApplication(sys.argv)
    MainWindow = QMainWindow()
    ui = helloworld.Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    # 设置按钮点击后的功能
    ui.pushButton.clicked.connect(click_success)
    sys.exit(app.exec_())
